import request from '@/utils/request'


// 修改密码
export function changePassword(oldPassword, newPassword) {
    const data = {
        oldPassword,
        newPassword
    }
    return request({
        url: '/user/changepassword',
        method: 'post',
        data: data
    })
}


// 获取用户信息
export function getInfo() {
    return request({
        url: '/user/profile/get',
        method: 'get'
    })
}
